<?php
if(!defined('READY2BLUE'))
	exit;
error_reporting(E_ALL^E_NOTICE);
define('BLUE_ROOT',substr(dirname(__FILE__),0,-7));

include(BLUE_ROOT.'./include/version.inc.php');
include(BLUE_ROOT.'./function/common.func.php');
include(BLUE_ROOT.'./class/CommandHelp.class.php');
include(BLUE_ROOT.'./function/debug.func.php');
include(BLUE_ROOT.'./function/lang.func.php');
include(BLUE_ROOT.'./include/config.inc.php');
include(BLUE_ROOT.'./class/Entry.class.php');
include(BLUE_ROOT.'./class/ArrayTools.class.php');
include(BLUE_ROOT.'./class/FileTools.class.php');
include(BLUE_ROOT.'./class/Result.class.php');
include(BLUE_ROOT.'./class/CommandLine.class.php');
include(BLUE_ROOT.'./class/Command.class.php');
include(BLUE_ROOT.'./class/CommandError.class.php');
include(BLUE_ROOT.'./class/CommandHistory.class.php');
include(BLUE_ROOT.'./class/pclzip.lib.php');
include(BLUE_ROOT.'./class/PHPZIP.class.php');
include(BLUE_ROOT.'./function/template.func.php');
include(BLUE_ROOT.'./lang/'.$CONFIG['lang'].'.lang.php');
if(!ini_get('register_globals'))
{
	extractRequestVars();
}
session_start();
if(!Entry::IsLogin())
{
	if(!(Entry::IsActionLogin()&&Entry::Login()))
	{
		include(template('login'));
		exit();
	}
}
else
{
	if(Entry::IsActionLogout())
	{
		Entry::Logout(false);
	}
}
?>

